<hr>
<div style='width:200px;float:left'>{action} {CAPTION}</div>
<div style="clear: both"></div>
	<table>
		<?php
			forEach($fields[DATA] as $field)
		    {
		     $_type = $field[TYPE];
		      echo "<tr><td>".$field[LABEL];
			  echo "</td><td>";
			  
		     if($_type == "")
			  	$_type = "textbox";
			 if($_type != "dropdown")
			 	 echo (isset($record[$field[FIELDS]] ) ? $record[$field[FIELDS]] : "" );
			 else{
			 	
			 	 forEach($DROPDOWN[$field[FIELDS]] as $dropdown){
			 	 	if($dropdown['id'] == $record[$field[FIELDS]]){
			 	 		echo $dropdown['value'];
			 	 		break;
			 	 	}
			 	 }
			 }
			  echo "</td><tr>";
			}
		 ?>
		 <tr>
		 	<td colspan="2"><a href="javascript:void(0)" onclick="cancelAction(this , '{page}', '<?=$record['id']?>');">[Cancel]</a></td>
		 </tr>
		 
	</table>
	
<hr>